include ../Makefile.shared

define PROJ_data
  SOURCES = data.ml data.mli
  RESULT = data
endef
export PROJ_data

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = data
endif

export LIBS=str

#interface:
#	ocamlc -i data.ml > data.mli

# Default target to use
all: ncl
	cp data.cmi data.cmxa data.a data.mli $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
